package cn.chengpengper.rpc.protocol;

import cn.chengpengper.rpc.protocol.header.RpcHeader;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author chengpeng.hu
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RpcProtocol<T> implements Serializable {

    private static final long serialVersionUID = -2531193494395898023L;

    private RpcHeader header;

    private T body;
}
